package com.etc.entity;

import org.springframework.stereotype.Component;

@Component
public class User {
	private Integer uid;

	private String uname;

	private String upwd;

	private String usex;

	private String utel;

	private Integer ustate;
	private String uimges;

	public String getUimges() {
		return uimges;
	}

	public void setUimges(String uimges) {
		this.uimges = uimges;
	}

	public Integer getUid() {
		return uid;
	}

	public void setUid(Integer uid) {
		this.uid = uid;
	}

	public String getUname() {
		return uname;
	}

	public void setUname(String uname) {
		this.uname = uname == null ? null : uname.trim();
	}

	public String getUpwd() {
		return upwd;
	}

	public void setUpwd(String upwd) {
		this.upwd = upwd == null ? null : upwd.trim();
	}

	public String getUsex() {
		return usex;
	}

	public void setUsex(String usex) {
		this.usex = usex == null ? null : usex.trim();
	}

	public String getUtel() {
		return utel;
	}

	public void setUtel(String utel) {
		this.utel = utel == null ? null : utel.trim();
	}

	public Integer getUstate() {
		return ustate;
	}

	public void setUstate(Integer ustate) {
		this.ustate = ustate;
	}

	public User(String utel, String upwd) {
		super();
		this.upwd = upwd;
		this.utel = utel;
	}

	public User(Integer uid, String uname, String upwd, String usex, String utel, Integer ustate) {
		super();
		this.uid = uid;
		this.uname = uname;
		this.upwd = upwd;
		this.usex = usex;
		this.utel = utel;
		this.ustate = ustate;
	}

	@Override
	public String toString() {
		return "User [uid=" + uid + ", uname=" + uname + ", upwd=" + upwd + ", usex=" + usex + ", utel=" + utel
				+ ", ustate=" + ustate + "]";
	}

	public User(Integer uid, String uname, String upwd, String usex, String utel, Integer ustate, String uimges) {
		this.uid = uid;
		this.uname = uname;
		this.upwd = upwd;
		this.usex = usex;
		this.utel = utel;
		this.ustate = ustate;
		this.uimges = uimges;
	}

	public User() {
		super();
		// TODO Auto-generated constructor stub
	}

	public User(String uname, String upwd, String usex, String utel, Integer ustate, String uimges) {
		this.uname = uname;
		this.upwd = upwd;
		this.usex = usex;
		this.utel = utel;
		this.ustate = ustate;
		this.uimges = uimges;
	}

}